
/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-27 09:34:45
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 11:36:11
 */

import {
  ExpressPageParms,
  ExpressListGetResultModel
} from './model/storeModel';
import { defHttp } from '/@/utils/http/axios';

import {
  BasicResult
} from '../model/baseModel';


enum Api {
  StroeInfo = '/substore/store/info',
  UpdateStoreInfo = '/substore/store/update',
  StoreExpress = '/substore/setting.express/list'
}
/**
 * 获取订单列表
 */
export const getStoreExpressList = (params: ExpressPageParms) =>
  defHttp.get<ExpressListGetResultModel>({ url: Api.StoreExpress, params });

/**
 * 获取订单详情
 * @param params 
 * @returns 
 */
export const storeDetail = () =>
  defHttp.get<BasicResult>({ url: Api.StroeInfo });
